package g.m.springcloud.controller;

import g.m.springcloud.entities.User;
import g.m.springcloud.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
public class UserController {

    @Resource
    private UserServiceImpl userService;



    @PostMapping(value = "/create")
    public void create(@RequestBody User user){

        userService.create(user);
    }

}
